package com.isoft.airportsystem.service.impl;

import com.isoft.airportsystem.entity.CKIE.DFLT_CKIE;
import com.isoft.airportsystem.entity.META;
import com.isoft.airportsystem.mapper.CKIEMapper;
import com.isoft.airportsystem.mapper.MetaMapper;
import com.isoft.airportsystem.service.CkieService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.UUID;

@Service
public class CkieServiceImpl implements CkieService {
    @Resource
    private CKIEMapper ckieMapper;
    @Resource
    private MetaMapper metaMapper;
    @Override
    public Integer add(DFLT_CKIE ckie, META meta) {
        String metaid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
        ckieMapper.add(ckie, metaid);
        metaMapper.add(meta,metaid);
        return null;
    }
}
